math.randomseed(GetSimulatorGlobal(SimulatorGlobal.Second) * GetSimulatorGlobal(SimulatorGlobal.Minute))
while GetConstant(363, 1) < table.getn(GetObjectArrayCopy(GetStackObjectId(), 0)) do
   table.remove(GetObjectArrayCopy(GetStackObjectId(), 0), math.random(table.getn(GetObjectArrayCopy(GetStackObjectId(), 0))))
end
SetObjectArray(GetStackObjectId(), 0, GetObjectArrayCopy(GetStackObjectId(), 0))

